<?php

abstract class UngvienCController extends Controller {

    /**
     * @desc layout
     */
    public $layout;

    public function init() {
        parent::init();
        
        // Load TIIS Bootstrap.
        Yii::app()->setAliases(array('bootstrap' => 'ext.bootstrap'));
        
        
        //set Theme & layout
        $this->layout = '//layouts/main';
        $theme = 'default';
        
        Yii::app()->setTheme(file_exists(dirname(__FILE__) . '/../../themes/' . $theme) ? $theme : 'default');
        
    }

    public function beforeAction($action) {
                   
        
        return true;
    }
    

}
